<nav class="navbar navbar-default">
	<div class="container">
		<!-- Brand and toggle get grouped for better mobile display -->
		<div class="navbar-header">
			<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#top-nav" aria-expanded="false">
				<span class="sr-only">
					菜单
				</span>
				<span class="icon-bar"></span>
				<span class="icon-bar"></span>
				<span class="icon-bar"></span>
			</button>
			<a class="navbar-brand" href="#">
				会员中心
			</a>
		</div>
		<!-- Collect the nav links, forms, and other content for toggling -->
		<div class="collapse navbar-collapse" id="top-nav">
			<ul class="nav navbar-nav">
				{volist name="user_left_nav" id="item"}
				<li class="dropdown">
					<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">
						{:L('left_nav_'.$key)}	<span class="caret"></span>
					</a>
					<ul class="dropdown-menu">
					{volist name="item" id="vo"}
						<li><a class="link-muted" href="{$vo['url']}">{$vo['name']}</a></li>
					{/volist}
					</ul>
				</li>
				{/volist}
			</ul>
			<ul class="nav navbar-nav navbar-right">
				<li class="dropdown">
					<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false"><i class="fa fa-user"></i> {$username} <span class="caret"></span>
					</a>
					<ul class="dropdown-menu">
						<li><a href="{:U('User/Index/index')}"><i class="fa fa-user"></i> 个人主页</a></li>
						{if condition="is_administrator()"}
						<li><a href="/admin.php" target="_blank"><span class="fa fa-dashboard"></span> 管理后台</a></li>
						{/if}
						<li role="separator" class="divider"></li>
						<li><a href="{:U('User/Public/logout')}">退出</a></li>
					</ul>
				</li>
			</ul>
		</div>
		<!-- /.navbar-collapse -->
	</div>
	<!-- /.container-fluid -->
</nav>